/**  
 * All rights Reserved, Designed By <a href="www.itttq.com" target="_blank">www.itttq.com</a>
 * @date:   2017-07-21 11:42:21
 * @Copyright: 2017 <a href="www.itttq.com" target="_blank">www.itttq.com</a> Inc. All rights reserved. 
 */
package com.itttq.gshop.pbpm.mapper;

import java.util.List;

import org.apache.ibatis.annotations.DeleteProvider;
import org.apache.ibatis.annotations.InsertProvider;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.SelectProvider;
import org.apache.ibatis.annotations.UpdateProvider;

import com.itttq.gshop.domain.po.SysSetPo;
import com.itttq.gshop.pbpm.provider.SysSetSqlProvider;

@Mapper
public interface ISysSetMapper {
	/**
	 * 新增SysSetPo对象
	 * 
	 * @param SysSetPo
	 * @Author 迷蝶
	 * @return Integer
	 */
	@InsertProvider(type=SysSetSqlProvider.class,  method="addSysSet") 
	public Integer addSysSet(SysSetPo sysSet);

	/**
	 * 更新SysSetPo对象
	 * 
	 * @param sysSitePo
	 * @Author 迷蝶
	 * @return Integer
	 */
	@UpdateProvider(type=SysSetSqlProvider.class,  method="updateSysSet") 
	public Integer updateSysSet(SysSetPo sysSet);
	
	/**
	 * 根据ID删除SysSetPo对象
	 * 
	 * @param id
	 * @Author 迷蝶
	 * @return Integer
	 */
	@DeleteProvider(type=SysSetSqlProvider.class,  method="delSysSet") 
	public Integer delSysSetBycode(String code);

	/**
	 * 根据条件查找SysSetPo对象，默认根据ID降序
	 * 
	 * @param sysSitePo
	 * @Author 迷蝶
	 * @return List<SysSetPo>
	 */
	@SelectProvider(type=SysSetSqlProvider.class,  method="findSysSets") 
	public List<SysSetPo> findSysSets(SysSetPo sysSet);
	
	/**
	 * 根据条件查找记录总数
	 * 
	 * @param sysSitePo
	 * @Author 迷蝶
	 * @return Integer
	 */
	@SelectProvider(type=SysSetSqlProvider.class,  method="findSysSetCount") 
	public Integer findSysSetCount(SysSetPo sysSet);

	/**
	 * 根据code查找SysSetPo对象
	 * 
	 * @param code
	 * @Author 迷蝶
	 * @return SysSetPo
	 */
	@SelectProvider(type=SysSetSqlProvider.class,  method="findSysSetByCode") 
	public SysSetPo findSysSetByCode(String code);
	
}